Skip to content

Add secret-free Bruno API collection - #379

Open
JairVilleda wants to merge 1 commit into
ashrafee-dev:mainfrom
JairVilleda:feat/263-bruno-api-collection
Open

JairVilleda wants to merge 1 commit into
ashrafee-dev:mainfrom
JairVilleda:feat/263-bruno-api-collection

Conversation

@JairVilleda

@JairVilleda JairVilleda commented Nov 26, 2026 •

Copy link
Copy Markdown

Outcome

Adds a secret-free Bruno API collection with local mock responses for testing the ScamShield API endpoints. Fixes #263.

Changes

  • Added Bruno requests for health, readiness, text analysis, audio analysis, and invalid-token authentication.
  • Added a local Python mock server that returns fixed responses without contacting production services.
  • Added unit tests covering authentication behavior, including unauthorized requests with large request bodies.
  • Added documentation for importing and running the collection locally.
  • Added a local environment using a placeholder API token.
  • No production API code, Docker configuration, or dependencies were changed.

Verification

  • python3 -m unittest discover -s examples/bruno-collection -p "test_*.py" — 3 tests passed.
  • "$(npm prefix -g)/bin/bru" run -r --env local — 5 requests passed, 3 Bruno tests passed, and 16 assertions passed.
  • bash scripts/check.sh — 55 tests passed; Pylint scored 10.00/10.
  • git diff --cached --check — passed.
  • All Bruno requests were verified against the local mock server. No production API requests were made.

Review notes

The collection is intended for local, offline testing. The API token in the local environment is a placeholder and must be replaced only when testing against a real API. The mock server uses fixed responses and does not require external services.

I used AI tools as coding assistance during development, but I reviewed the implementation and personally ran the tests and verification commands listed above.

@vercel

vercel Bot commented Nov 26, 2026

Copy link
Copy Markdown

@JairVilleda is attempting to deploy a commit to the ashrafee-dev's projects Team on Vercel.

A member of the Team first needs to authorize it.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a secret-free Bruno API collection

1 participant